package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 tb_order
 * 
 * @author ruoyi
 * @date 2022-07-04
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 状态为0表示未支付，状态为1表示已支付 */
    @Excel(name = "状态为0表示未支付，状态为1表示已支付")
    private String state;

    /** 总价 */
    @Excel(name = "总价")
    private Long sumPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setSumPrice(Long sumPrice) 
    {
        this.sumPrice = sumPrice;
    }

    public Long getSumPrice() 
    {
        return sumPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderTime", getOrderTime())
            .append("uid", getUid())
            .append("state", getState())
            .append("sumPrice", getSumPrice())
            .toString();
    }
}
